home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 1 (Walnut Creek)
/
Aminet - June 1993 [Walnut Creek].iso
/
aminet
/
util
/
misc
/
joy2key_1_0.lha
/
Joy2Key.doc
< prev
Wrap
Text File
|
1992-09-06
|
3KB
|
70 lines
JOY2KEY v1.0
WHAT IS JOY2KEY?
Joy2Key is a small utility that converts joy movements into cursor
movements. It can be used to move the cursor into a word processor window,
but it's main use is to make some PD games more playable. How many times
you loaded you last-arrive wonderful version of Tetrix, but when you pulled
joy lever the pieces strangely don't moved because game's autor "forgot" to
insert a joy routine? Of course you are a good and experienced programmer,
able to modify game's source to remedy this little lack... But what if
source is not supplied (or it is written in ADA or similar)? No problem,
you are an expert hacker, so you take your last 68000 asm/dsm/dbg/etc. and
dismantel the executable code piece by piece, find key routine and
substitute it with your routine. But what if you are a mortal man? It's
simple! You can load Joy2Key!
This is version 1.0 - no bugs known (work even with Kick 2.x).
HOW MUST I USE JOY2KEY?
Load it from CLI (it must not be RUNned - I used Lattice CBack.o). Joy2Key
install an Input handler with a priority greater than intuition handler
(used to see if user want quit - LeftALT LeftShift CTRL q). Then it wait a
joy movement and translate it into appropriate rawkey codes, and insert them
as new events by RawInsert() routine. I wrote this program to play
WellTrix by Gary W. Milliorn, so program is set up for this (the button
causes the pieces be rotated, so cursordown), but you con easily change this
modifing the first sources lines (some defines), even if you probably need a
program as RawInfo (from me) to know rawkey codes to use. You can also
change the sensitivity of Joy2Key, modifing the TIMEDELAY. If you define
DEBUG, debug mode will be enabled (Joy2Key will print joy movements).
FUTURE IMPROVEMENT
Possibility of change default values from command line, and to load just
after your favorite game.
TECNICAL NOTES
To compile I used Lattice C 5.10:
lc -L -rr <-dDEBUG> joy2key.c
(It probably can be compiled only under recent Lattice versions)
AUTOR NOTES
This program is Public Domain. You can copy, distribute, spread if only
with its doc and sources. You cannot sell it. I encourage to read the
source, and use parts of it in your programs if they are PD else it requires
written permission.
I don't require money if you use it, but it is obiously pleased (or if you
prefer other PD software, greeting cards or your sister photo (if really
nice), suggestion for improvement...)
I'm sorry for lots of error in this doc
My home address is:
Via G.Cantore 10
Conegliano Veneto (TV)
31015 ITALY
My InterNet e-Mail address is:
omega@sabrina.dei.unipd.it (at Padova university)
*** END OF FILE ***